package com.Jasper.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
 *@ClassName EbookResp
 *@Author jiangjiajia
 *@JDK-Version 1.8
 *@Date 2021/8/31 6:11 pm
 *@Version 1.0
 *@Description 必须描述类的业务用途
 
 **/

/**
    * 电子书
    */
@Data
@TableName(value = "ebook")
public class EbookResp {
    /**
     * id  返回给前端不应该有id信息
//     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 分类1
     */
    @TableField(value = "category1_id")
    private Long category1Id;

    /**
     * 分类2
     */
    @TableField(value = "category2_id")
    private Long category2Id;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 封面
     */
    @TableField(value = "cover")
    private String cover;

    /**
     * 文档数
     */
    @TableField(value = "doc_count")
    private Integer docCount;

    /**
     * 阅读数
     */
    @TableField(value = "view_count")
    private Integer viewCount;

    /**
     * 点赞数
     */
    @TableField(value = "vote_count")
    private Integer voteCount;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_CATEGORY1_ID = "category1_id";

    public static final String COL_CATEGORY2_ID = "category2_id";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_COVER = "cover";

    public static final String COL_DOC_COUNT = "doc_count";

    public static final String COL_VIEW_COUNT = "view_count";

    public static final String COL_VOTE_COUNT = "vote_count";
}